<?php
session_start ();

$_SESSION ['pathway'] = '..';
include ($_SESSION ['pathway'] . "/header.php");

if (! isset ( $_SESSION ['id'] ) and $_SESSION ['acces_genetique'] <= 2) {
	echo "<table class='principale'><tr><td>Session expired</td></tr>";
	echo "<tr><td><a href='" . $_SESSION ['pathway'] . "/index.php'>Start</a></td></tr></table>";
} else {
	
	if (isset ( $_SESSION ['requete_linkage'] )) {
		unset ( $_SESSION ['requete_linkage'] );
	}
	if (isset ( $_SESSION ['requete_screening'] )) {
		unset ( $_SESSION ['requete_screening'] );
	}
	if (isset ( $_SESSION ['requete_wholegenomeanalysis'] )) {
		unset ( $_SESSION ['requete_wholegenomeanalysis'] );
	}
	
	require_once ("../commun/ouvre_base.php");
	
	?>

<a href="<?php echo $_SESSION['pathway']; ?>/index.php">Home</a>
> Export Genetics

<form
	action="<?php echo $_SESSION['pathway']; ?>/commun/see_genetics.php"
	method='post' enctype='multipart/form-data'>

	<table class='principale'>
		<tr>
			<td>Code ID Family :</td>
			<td><input type="text" maxlength="3" size="1" name="code1" value='*' />-
				<input type="text" maxlength="3" size="1" name="code2" />- <input
				type="text" maxlength="3" size="1" name="code3" />- <input
				type="text" maxlength="4" size="1" name="code4" />- <input
				type="text" maxlength="3" size="1" name="code5" /> <br /> <h0>(* for
				all)</h0></td>
			<td>External code :</td>
			<td><input type='text' style='width: 100px;' name='codeexterne' /></td>
			<td>Genethon code :</td>
			<td><input type='text' style='width: 100px;' name='codegenethon' /></td>
		</tr>
		<tr>
			<td>Centre :</td>
			<td><input type='text' style='width: 100px;' name='centre' /></td>
			<td>Neurologist :</td>
			<td><input type='text' style='width: 100px;' name='neurologist' /></td>
		</tr>
		<tr>
			<td>Date :</td>
			<td><input type='text' style='width: 100px;' name='date' value='' /></td>
		
		
		<tr>
			<td>User :</td>
			<td><input type='text' style='width: 100px' name='user' /></td>
		</tr>
		</tr>

		<tr>
			<td>Validation :</td>
			<td><label><input type='radio' name='validation' value='yes' /> yes </label><br />
				<label><input type='radio' name='validation' value='no' /> no </label></td>
		</tr>
		<tr>
			<td>To do :</td>
			<td><textarea name='afaire' cols='15' rows='3'></textarea></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td><input type='submit' name='submit' value=' Global view ' /></td>
		</tr>
	</table>

	<!-- Linkage -->
	<table class='principale'>
		<caption>Linkage</caption>
		<tr>
			<td>Status :</td>
			<td><select size='1' name='statutlinkage'>
					<option></option>
					<option value='ongoing'>ongoing</option>
					<option value='done'>done</option>
					<option value='to do'>to do</option>
			</select></td>
		</tr>
		<tr>
			<td>Locus :</td>
			<td><input type='text' style='width: 100px;' name='locusteste' />
				exact match <i>(%locus% to grep locus name)</i></td>
		</tr>
		<tr>
			<td>Mode :</td>
			<td><label><input type='radio' name='modelinkage' value='dominant' />
					dominant</label><br /> <label><input type='radio'
					name='modelinkage' value='recessive' /> recessive</label><br /> <label><input
					type='radio' name='modelinkage' value='X-linked' /> X-linked</label><br />
				<label><input type='radio' name='modelinkage' value='pseudodominant' />
					pseudo-dominant</label><br /> <label><input type='radio'
					name='modelinkage' value='sporadique' /> sporadic</label></td>
		</tr>
		<tr>
			<td>Linkage :</td>
			<td><select name='linkage' size='1'>
					<option></option>
					<option>exclusion</option>
					<option>significant linkage</option>
					<option>other</option>
			</select>
		
		</tr>
		<tr>
			<td>Diagnosis :</td>
			<td><label><select name='diagnosticlinkage'>
						<option></option>
						<option>linked</option>
						<option>excluded</option>
						<option>not informative</option>
						<option>putative linkage</option>
				</select></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td><input type='submit' name='submit' value=' Linkage view ' /></td>
			<td><a href="../commun/genere_fichierxls.php?export_type=linkage"><img
					src="./images/Excel.png" height='25'> download linkage spreadsheet
			</a><br /></td>
		</tr>
	</table>


	<!-- Screening -->
	<table class='principale'>
		<caption>Screening</caption>
		<tr>
			<td>Status :</td>
			<td><select size='1' name='statutscreening'>
					<option></option>
					<option value='ongoing'>ongoing</option>
					<option value='done'>done</option>
					<option value='to do'>to do</option>
			</select></td>
		</tr>
		<tr>
			<td>Gene :</td>
			<td><input type='text' style='width: 100px;' name='gene' /> exact
				match <i>(%gene% to grep gene name)</i></td>
		</tr>
		<tr>
			<td>Transcript ID (nomenclature) :</td>
			<td><input type='text' style='width: 120px;' name='transcript' /></td>
		</tr>

		<tr>
			<td>Mode :</td>
			<td><label><input type='radio' name='modescreening' value='dominant' />
					dominant</label><br /> <label><input type='radio'
					name='modescreening' value='recessive' /> recessive</label><br /> <label><input
					type='radio' name='modescreening' value='X-linked' /> X-linked</label><br />
				<label><input type='radio' name='modescreening'
					value='pseudodominant' /> pseudo-dominant</label><br /> <label><input
					type='radio' name='modescreening' value='sporadique' /> sporadic</label>
			</td>
		</tr>
		<tr>
			<td>Technique :</td>
			<td><select size='1' onchange='toggleDisplayTechnique(this.value)'
				name='techniquescreening'>
					<option></option>
					<option value='sequencing'>sequencing</option>
					<option value='DHPLC'>DHPLC</option>
					<option value='HRM'>HRM</option>
					<option value='high density microarray'>high density microarray</option>
					<option value='MLPA'>MLPA</option>
					<option value='TaqMan'>TaqMan</option>
			</select></td>
		</tr>
		<tr>
			<td>Cosegregation :</td>
			<td><label><input type='radio' style='width: 100px;'
					name='cosegregation' value='yes' /> yes </label><br /> <label><input
					type='radio' style='width: 100px;' name='cosegregation' value='no' />
					no </label></td>
		</tr>
		<tr>
			<td>Diagnosis :</td>
			<td><label><select name='diagnosticscreening'>
						<option></option>
						<option>mutated</option>
						<option>not mutated</option>
						<option>healthy carrier</option>
				</select></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td><input type='submit' name='submit' value=' Screening view ' /></td>
			<td><a href="../commun/genere_fichierxls.php?export_type=screening"><img
					src="./images/Excel.png" height='25'> download screening
					spreadsheet </a><br /></td>
		</tr>
	</table>


	<!-- WGA -->
	<table class='principale'>
		<caption>Whole genome analysis</caption>
		<tr>
			<td>Status :</td>
			<td><select size='1' name='statutwga'>
					<option></option>
					<option value='ongoing'>ongoing</option>
					<option value='done'>done</option>
					<option value='to do'>to do</option>
			</select></td>
		</tr>
		<tr>
			<td>Technique :</td>
			<td><select name='techniquewga' size='1'>
					<option></option>
					<option>high density microarrays</option>
					<option>linkage microarrays</option>
					<option>exome</option>
					<option>sequencage haut debit</option>
			</select></td>
		
		
		<tr>
			<td>Diagnosis :</td>
			<td><label><textarea name='diagnosticwga' value='linked' /></textarea>
		
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td><input type='submit' name='submit' value=' WGA view ' /></td>
			<td><a
				href="../commun/genere_fichierxls.php?export_type=wholegenomeanalysis"><img
					src="./images/Excel.png" height='25'> download WGA spreadsheet </a><br /></td>
		</tr>
	</table>


</form>

<?php
}
include ($_SESSION ['pathway'] . "/footer.php");
?>
